
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Logquery

	/// <summary>
	/// Logquery string for NHibernate mapped table 'logquery'.
	/// </summary>
	public class Logquery
		{
		#region Member Variables
		
		protected int _logquery_id;
		protected int _logquery_usr;
		protected string _logquery_query;
		protected DateTime _logquery_time;

		#endregion

		#region Constructors

		public Logquery() { }

		public Logquery( int logquery_usr, string logquery_query, DateTime logquery_time )
		{
			this._logquery_usr = logquery_usr;
			this._logquery_query = logquery_query;
			this._logquery_time = logquery_time;
		}

		#endregion

		#region Public Properties

		public virtual int Logquery_id
		{
			get {return _logquery_id;}
			set {_logquery_id = value;}
		}

		public virtual int Logquery_usr
		{
			get { return _logquery_usr; }
			set { _logquery_usr = value; }
		}

		public virtual string Logquery_query
		{
			get { return _logquery_query; }
			set
			{
				if ( value != null && value.Length > 135)
					throw new ArgumentOutOfRangeException("Invalid value for Logquery_query", value, value.ToString());
				_logquery_query = value;
			}
		}

		public virtual DateTime Logquery_time
		{
			get { return _logquery_time; }
			set { _logquery_time = value; }
		}

        
		#endregion
		
        
	}

	#endregion
}
